{% extends "admin/base_site.html" %}
{% load i18n %}

{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %}

{% block coltype %}colMS{% endblock %}

{% block bodyclass %}dashboard{% endblock %}

{% block breadcrumbs %}{% endblock %}

{% block extrahead %}
    
    <script src="../media/js/jquery-1.6.4.min.js" type="text/javascript"></script>
    <script src="../media/js/jquery.flot.min.js" type="text/javascript"></script>
    <script src="../media/js/tracker.js" type="text/javascript"></script>
    <script type="text/javascript">
	    $(function () {
	     	loadPage();
	    });
    </script>
    
{% endblock %}

{% block content %}
<div id="content-main">

{% if app_list %}
        <div class="module">
        <table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}">
        <caption><a href="{{ app.app_url }}" class="section">Settings</a></caption>
    {% for app in app_list %}
        {% for model in app.models %}
          {%  if model.name != "Sites" and model.name != "Groups" %}
            <tr>
            {% if model.perms.change %}
                <th scope="row"><a href="{{ model.admin_url }}"> {%  if model.name != "Jboss_ instances" %}{{ model.name }}{% else %}Jboss Instances{% endif %}</a></th>
            {% else %}
                <th scope="row">{{ model.name }}</th>
            {% endif %}

            {% if model.perms.add %}
                <td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td>
            {% else %}
                <td>&nbsp;</td>
            {% endif %}

            {% if model.perms.change %}
                <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
            {% else %}
                <td>&nbsp;</td>
            {% endif %}
            </tr>
            {% endif %}
        {% endfor %}
    {% endfor %}
        </table>
        </div>
{% else %}
    <p>{% trans "You don't have permission to edit anything." %}</p>
{% endif %}
</div>
{% endblock %}

{% block sidebar %}
{% endblock %}

{% block footer %}<div id="footer">
<div id="placeholder" style="width:700px; height: 500px;"></div>
</div>{% endblock %}


